namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0086 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysApprovePathSimulate", "ApproverPosId", c => c.Int());
            AddForeignKey("dbo.SysApprovePathSimulate", "ApproverPosId", "dbo.hrm_mp_positions", "pos_seq");
            CreateIndex("dbo.SysApprovePathSimulate", "ApproverPosId");
        }
        
        public override void Down()
        {
            DropIndex("dbo.SysApprovePathSimulate", new[] { "ApproverPosId" });
            DropForeignKey("dbo.SysApprovePathSimulate", "ApproverPosId", "dbo.hrm_mp_positions");
            DropColumn("dbo.SysApprovePathSimulate", "ApproverPosId");
        }
    }
}
